package com.zwwang.readconfig.dto;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@PropertySource(value = "classpath:custom.properties", encoding = "utf-8")
@ConfigurationProperties("country")
@Data
public class CountryDto
{
    private List<String> city;
}
